package com.tmqSoft.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.tmqSoft.dao.domain.TbItem;
import com.tmqSoft.service.ItemService;

@Controller
public class ItemController {
    
    @Autowired
    private ItemService itemService;
    
    @RequestMapping("/item/{itemId}")
    public TbItem geTbItemById(@PathVariable Long itemId){
        return itemService.geTbItemById(itemId);
    }
    

}
